package com.czr.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czr.dao.entity.CzrPost;
import com.czr.dao.entity.CzrReply;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 帖子表 Mapper 接口
 * </p>
 *
 */
@Mapper
public interface CzrReplyMapper extends BaseMapper<CzrReply> {

    List<CzrReply> get2RepalyList(@Param("replyId") Integer replyId);

    Integer getPostCount(@Param("postId") Long postId);

    Integer getPostColumnCount(@Param("columnId") Integer columnId);

    Integer getReplyColumnCount(@Param("columnId") Integer columnId);

    Integer getLikeColumnCount(@Param("columnId") Integer columnId);

    Integer getUserReplyColumnCount(@Param("columnId") Integer columnId,@Param("userId") Integer userId);


    List<CzrReply> getColumnRepalyList(@Param("columnId") Integer columnId);
}
